package com.sino.ecif.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author Ixion
 *
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

	// @Autowired
	// StaffService staffService;

	@RequestMapping("/world")
	public @ResponseBody String hello(@RequestParam(value = "who", defaultValue = "world") String who) {
		// staffService.name();
		return String.format("Hello %s !", who);
	}

}
